﻿<UserControl xmlns:LaunchAllaround="clr-namespace:LaunchAllaround"  x:Class="LaunchAllaround.Key.KeyUI"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" RenderTransformOrigin="0.5,0.5" d:DesignHeight="144">
    <Grid Margin="5,5,5,5" HorizontalAlignment="Center">
        <Grid.RowDefinitions>
            <RowDefinition Height="3*" />
            <RowDefinition Height="2*" />
            <RowDefinition Height="3*" />
        </Grid.RowDefinitions>
        <Grid Name="Path" Grid.Row="0">
            <Label HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="center" Grid.Row="0" Width="120" Padding="0">
                <TextBlock Name="songPath" Text="(Select a sound from your library)" TextWrapping="WrapWithOverflow" Padding="0" TextAlignment="Center" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </Label>
        </Grid>
        <Grid Name="Volume" Grid.Row="1" Visibility="Hidden">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="3*"></ColumnDefinition>
                <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Image Name="VolumeImage" HorizontalAlignment="Center" Opacity="1" Grid.Column="0" VerticalAlignment="Center" Height="30"/>
            <Slider Name="VolumeSlider" Grid.Column="1" ValueChanged="SliderValueChangedEvent" VerticalAlignment="Center" Maximum="100" SmallChange="1" IsSelectionRangeEnabled="true" SelectionStart="0"/>
            <Label Grid.Column="2" Name="VolumeText" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        </Grid>
        <Grid Name="Controls" Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="75" />
                <ColumnDefinition Width="75" />
            </Grid.ColumnDefinitions>
            <Image Source="/Resources/Images/Themes/Dark/Key/browse.png" HorizontalAlignment="Center" Opacity="1" Grid.Column="0" VerticalAlignment="Center" MouseDown="SongPathChangeEvent" Height="40"/>
            <Image Name="preview" Source="/Resources/Images/Themes/Dark/Key/play.png" HorizontalAlignment="Center" Opacity="1" Grid.Column="1" VerticalAlignment="Center" MouseDown="PreviewButtonChangeEvent" Height="40" Visibility="Hidden"/>
            
        </Grid>
       

    </Grid>
</UserControl>
